package com.company.observer;

/**
 * 具体主题角色，汽油价格
 */
public class GasolinePrice extends OilPrice {

    @Override
    public void change(boolean flag) {

        System.out.println("汽油价格发生了改变");

        for (Owner owner : ownerList) {
                owner.response(flag);
        }
    }
}
